package com.amkai.aes.webservice.binary.objecthandler.inventory;

public class TransientPropertyHQLGenerator extends PropertyHQLGenerator {

	public TransientPropertyHQLGenerator(String instanceName,
			String propertyName, ResolverServiceManager resolverMgr) {
		super(instanceName, propertyName, resolverMgr);
	}

	@Override
	public String getHQLFragment() {
		return "";
	}

	@Override
	public String getHQLPropertyName() {
		if (instanceName != null) {
			return instanceName + ".id";
		}
		return "id";
	}

	@Override
	public Object getValueFromText(String searchText) {
		return "";
	}

	@Override
	public Object resolveValue(Object valueToResolve) {
		// KKORNEL: AES-4465
		/*if ("tranzientActive".equals(propertyName)) {
			return resolverMgr.getDictionaryManager().isActive((Long)valueToResolve, resolverMgr.getCurrentDepartment().getId());
		}*/
		return valueToResolve;
	}

}
